/**
 * @Author DengJia
 * @Date 2021/8/18 21:51
 * @Description
 */

public class Person {
    private String ID = "1100101"; // 定义时候初始化
    private String name = "TOM"; // 定义时候初始化
    private String remark;
    private String delay;

    {
        remark = "实例初始化的备注信息";
    }

    public Person() {
    }

    public Person(String ID, String name, String remark, String delay) {
        this.ID = ID;
        this.name = name;
        this.remark = remark;
        this.delay = delay;
    }

    @Override
    public String toString() {
        delay = delay == null ? "延迟初始化" : delay;
        return "Person{" +
                "ID='" + ID + '\'' +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", delay='" + delay + '\'' +
                '}';
    }
}
